package br.com.hibernate.util;

import br.com.financeiro.dao.ContaDao;
import br.com.financeiro.dao.ContaDaoImpl;
import br.com.financeiro.dao.UsuarioDao;
import br.com.financeiro.dao.UsuarioDaoImpl;

public class DAOFactory {
	
	
	public static UsuarioDao criarUsuarioDao(){
		UsuarioDaoImpl usuarioDao = new UsuarioDaoImpl();
		usuarioDao.setSession(HibernateUtil.getGetsessionfactory().getCurrentSession());
		return usuarioDao;
	}
	
	
	public static ContaDao criarContaDao(){
		ContaDaoImpl contaDao = new ContaDaoImpl();
		contaDao.setSession(HibernateUtil.getGetsessionfactory().getCurrentSession());
		return contaDao;
	}

}
